﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Lesson_2
{
    class Program
    {
        public static int FibNumber(int count)
        {
            int a=1;
            int b=1;
            int sum=0;
            for (int i = 3; i <= count; i++)
            {
                sum = a + b;
                a = b;
                b = sum;
            }
            return b;
        }

        static void Main()
        {
            int arr = FibNumber(7);
            Console.WriteLine(arr);
        }
    }
}
